﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DataExtractionLanguage
{
    /// <summary>
    /// Represent join clause.
    /// </summary>
    public class JoinClause
    {
        /// <summary>
        /// Gets or sets the type of the join cluase.
        /// </summary>
        public JoiningTypeEnum JoiningType { get; set; }

        /// <summary>
        /// Gets or set the right hand of the join cluase
        /// </summary>
        /// <remarks>The left hand of the join clause is in the from or in the previos JoinClause.</remarks>
        public SourceList Source { get; set; }

        /// <summary>
        /// Gets or sets linkage criteria.
        /// </summary>
        public ExpressionTerm LinkageExp { get; set; }

        public DataTable JoiningResult { get; set; }
    }
}
